<aside class="sidebar">

    <div class="widget widget-nopadding widget_ui_text widget_ui_text_list">
        <a class="widget_title">Hi 欢迎来到IT大叔</a>
        <p class="widget_body">大叔关注IT技术文档和发展革新，加入我们，这里有一群共同爱好的人！</p>
        <div class="descrip_button">
            <a target="blank" class="btn btn-info" href="http://shang.qq.com/wpa/qunwpa?idkey=f4a6ffb4b6e624cdc509673609a2f054256425853cb3da0de18804587f310d2d">加入交流QQ群</a>
            {% if user.isLogin() %}
                <a class="btn btn-default" href="{{ url(['for':'userCenterIndex']) }}">用户中心</a>
            {% else %}
                <a class="btn btn-default" ajax-model="{{ url(['for':'login']) }}?rd={{ url }}" href="{{ url(['for':'login']) }}?rd={{ url }}">登录/注册</a>
            {% endif %}
        </div>
        {% cache "asidenews" 7200 %}
        <ul class="widget_body">
            {% for item in entityList('node',['andWhere':[['conditions':'%contentModel% = :contentModel:','bind':['contentModel':'book']]],'limit':5]) %}
                <li><i><em></em></i><a target="_blank" href="{{ url(['for':'node','id':item.id]) }}">{{ item.title }}</a>
                    <p>{{ timeTran(item.changed) }}</p>
                </li>
            {% endfor %}
        </ul>
        {% endcache %}
    </div>
    {% cache "commentandtags" 72000 %}
    {% include 'Themes/Dabbs/templates/widget-comment.twig' %}
    {% include 'Themes/Dabbs/templates/widget-tags.twig' %}
    {% endcache %}
</aside>
